<%--
  Created by IntelliJ IDEA.
  User: fairy
  Date: 2021/4/10
  Time: 14:17
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>注册页面</title>
</head>

<style>
    #home {
        width: 300px;
        height: 300px;
        margin: auto;
    }
    .dl1{
        clear: both;
    }
    .dl1 dt{
        float: left;

    }
    .dd1 dd{
        float: left;
    }
    p{
        color:red;
        text-align: center;
    }
    h1{
        text-align: center;
    }
    #foot{
        text-align: center;
    }
</style>
</head>

<body>
<%@page session="false" %>
<div id="home">
    <h1>用户注册</h1>
    <form action="/insert.html" method="post">
        <dl class="dl1">
            <dt>用户姓名:</dt>
            <dd><input type="text" name="userName" /></dd>
        </dl>
        <dl class="dl1">
            <dt>用户密码:</dt>
            <dd><input type="password" name="password" /></dd>
        </dl>
        <dl class="dl1">
            <p>${error}</p>
        </dl>
        <div id="foot">
            <input type="submit" value="注册"/>
        </div>
    </form>
</div>
</body>
</html>

